﻿.sp-contextmenu-top-ul {
	position: fixed;
	z-index: 9999;
	background: #ffffff;
	border-radius: 2px;
	box-shadow: 0 2px 2px 0 #cccccc;
	font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
	font-size: 12px;
	margin: 0;
	padding: 0;

	* {
		margin: 0;
		padding: 0;
	}

	li {
		list-style: none;
	}

	.sp-contextmenu-right-icon {
		position: absolute;
		display: block;
		top: 4px;
		right: 0;
		border-top: 4px solid transparent;
		border-left: 8px solid #111111;
		border-bottom: 4px solid transparent;
		border-right: 4px solid transparent;
	}

	.sp-contextmenu-left-icon {
		position: absolute;
		display: block;
		top: 4px;
		right: 0;
		border-top: 4px solid transparent;
		border-left: 4px solid transparent;
		border-bottom: 4px solid transparent;
		border-right: 8px solid #111111;
	}

	.sp-contextmenu-disable {
		color: #d3cfcf;
		cursor: not-allowed;
	}

	.topmenu-li {
		position: relative;
		background: #ffffff;
		text-decoration: none;
		list-style: none;
		margin: 3px 0;

		&:hover {
			background: #2894f8;

			> .topmenu-has-child {
				> .subtree-ul {
					display: block;
				}
			}
		}

		.topmenu-has-child {
			position: relative;
			cursor: pointer;
			padding: 5px 10px;
		}

		.topmenu-leaf-btn {
			padding: 5px 10px;
			cursor: pointer;
		}

		.topmenu-nav-icon {
			position: absolute;
			left: 0;
		}

		.topmenu-nav-name {
			margin: 0 20px;
			height: auto;
			line-height: 16px;
			display: block;
		}

		.topmenu-btn-wrapper {
			position: relative;
			height: auto;
			line-height: 16px;
		}
	}

	.spcontextmenu-subtree-dir-1 {
		right: 100%;
		top: -1px;
		z-index: 10001;
	}

	.spcontextmenu-subtree-dir-2 {
		left: 100%;
		top: -1px;
		z-index: 10001;
	}

	.spcontextmenu-subtree-dir-3 {
		left: 100%;
		bottom: -1px;
		z-index: 10001;
	}

	.spcontextmenu-subtree-dir-4 {
		right: 100%;
		bottom: -1px;
		z-index: 10001;
	}

	.subtree-ul {
		background: #ffffff;
		position: absolute;
		display: none;
		border: 1px solid #e8e8e8;
		border-radius: 3px;

		.subtree-li {
			&:hover {
				> .subtree-has-child {
					> .subtree-ul {
						display: block;
					}
				}

				background: #2894f8;
			}

			.subtree-has-child {
				padding: 5px 10px;
				position: relative;
			}

			.subtree-nav-name {
				white-space: nowrap;
				display: block;
				margin: auto 20px;
			}

			.subtree-leaf-btn {
				padding: 5px 10px;
			}

			.subtree-nav-icon {
				position: absolute;
			}

			.subtree-btn-wrapper {
				position: relative;
				height: auto;
				line-height: 16px;
			}
		}
	}
}
